
# 后台页面管理 ，所有的页面都放在 controllers 中

from application import app

# 统一拦截器
from web.interceptors.AuthInterceptor import *
from web.interceptors.ApiAuthInterceptor import *
from web.interceptors.ErrorInterceptor import *

# 蓝图功能，对所有url进行统一配置
from web.controllers.index import route_index   # 首页 显示仪表盘
from web.controllers.user.User import route_user  # 用户管理页面，编辑信息和修改密码使用
from web.controllers.static import route_static  # 用于加载本地静态图片和静态资源
from web.controllers.account.Account import route_account  # 账号管理页面
from web.controllers.finance.Finance import route_finance  # 财务管理页面
from web.controllers.food.Food import route_food  # 美餐管理页面
from web.controllers.member.Member import route_member  # 会员管理页面
from web.controllers.stat.Stat import route_stat  # 统计管理页面

from web.controllers.api import route_api  # 微信小程序

from web.controllers.upload.Upload import route_upload
from web.controllers.chart import route_chart

app.register_blueprint(route_index, url_prefix="/")
app.register_blueprint(route_user, url_prefix="/user")
app.register_blueprint(route_static, url_prefix="/static")
app.register_blueprint(route_account, url_prefix="/account")
app.register_blueprint(route_finance, url_prefix="/finance")
app.register_blueprint(route_food, url_prefix="/food")
app.register_blueprint(route_member, url_prefix="/member")
app.register_blueprint(route_stat, url_prefix="/stat")
app.register_blueprint(route_api, url_prefix="/api")
app.register_blueprint(route_upload, url_prefix="/upload")
app.register_blueprint(route_chart, url_prefix="/chart")

